package com.xc.stock.infrastructure.db.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.web.config.EnableSpringDataWebSupport;

import com.rp.spring.jpa.FreemarkerSqlTemplates;

/**
 * 
 * title: JpaConfig.java jpa通用配置
 *
 * @author xlfd
 * @email xlfd@gmail.com
 * @version 1.0
 * @created Jan 26, 2018 3:57:59 PM
 */
@Configuration
@EnableSpringDataWebSupport
public class JpaConfig {
	@Bean
	public FreemarkerSqlTemplates freemarkerSqlTemplates() {
		FreemarkerSqlTemplates templates = new FreemarkerSqlTemplates();
		templates.setTemplateBasePackage("");
		templates.setSuffix(".sftl");
		return templates;
	}
}